<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    var o = {
       x:10,
        y:20
    }





    ~function(oo){
        oo.say = function () {
            console.log(oo.x)
        }
    }(o);



</script>
</body>
</html>